<tagLib name="html" />
<include file="Public:header" />
<script src="/Public/source/jquery.js"></script>
<script>
	$(function(){
		$(".display").mouseover(function(){
			$(this).css('background','#D3DCE3');
		}).mouseout(function(){
			$(this).css('background','#F4F8FC');
		});
	});
</script>
	<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
	  <div style="float:left;"><a href="{YICMS::U('Index/stat')}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;编辑模板文件</div>
	</div>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;">
		<tr class="header" align="center">
			<td width="20%" class="center">SQL文件名</td>
			<td  width="15%" class="center">文件大小</td>
			<td  width="20%" class="center">导出时间</td>
			<td  width="15%" class="center">下载</td>
			<td  width="15%" class="center">还原</td>
			<td  width="15%" class="center">删除</td>
		</tr>
	</table>
	<ul id="list">
		<if condition="$list neq NULL">
			<volist name="list" id="vo">
				<li style="list-style:none;border-bottom:1px dotted #BCBCBC" class="display">
					<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
						<tr align="center" class="smalltxt">
							<td width="20%" class="center">{YICMS:$vo.name}</td>
							<td width="15%" class="center">{YICMS:$vo.size|getFileSize=###}</td>
							<td width="20%" class="center">{YICMS:$vo.time|switchtime=###}</td>
							<td width="15%" class="center"><a href="{YICMS::U('Data/down?name='.$vo['name'])}">下载此SQL文件</a></td>
							<td width="15%" class="center"><a href="{YICMS::U('Data/import?name='.$vo['name'])}" onclick="return confirm('提示：您确定要用此SQL文件覆盖数据库吗？不可恢复！建议先将现在的数据库备份!')">还原此SQL文件</a></td>
							<td width="15%" class="center"><a href="{YICMS::U('Data/del?name='.$vo['name'])}" onclick="return confirm('提示：您确定删除SQL文件吗？不可恢复！')">删除此SQL文件</a></td>
						</tr>
					</table>
				</li>
			</volist>
		<else />
			<li>
				<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
					<tr align="center" class="smalltxt">
						<td class="altbg1" style="text-align:center;font-weight:bold;color:#E01558;padding:10px 0px;">当前没有备份的SQL文件!^_^</td>
					</tr>
				</table>
			</li>
		</if>	
	</ul>
<br/>
<include file="Public:footer" />